#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

def printSpin():
    sb.delete(0)
    print sb.get()

sb = Spinbox(root, values=(1234,234,34,4), command=printSpin)
sb.pack()

root.mainloop()
